﻿function bluejot(opt){
	this.opt = opt || null;
	this.navigation = new Object();
	this.navigation.drop_menu_dropped = false;
	this.navigation.toggleDropMenu = function(opt, anchor_id, menu_id){
		if(this.drop_menu_dropped == false){
			$(anchor_id).html('▼');
			$(menu_id).show('slow');
			this.drop_menu_dropped = true;	
		} else {
			$(anchor_id).html('▲');			
			$(menu_id).hide('slow');
			this.drop_menu_dropped = false;	
		}
	}
};

var bj = new bluejot();

//Init
$(document).ready(function()
{
   // Use the each() method to gain access to each of the elements attributes
   $('.thumbnail').each(function()
   {
      $(this).qtip(
      {
         content: '<a href="#">Edit</a> | <a href="#">Delete</a>', // Give it some content
         position: 'bottom', // Set its position
         hide: {
            fixed: true // Make it fixed so it can be hovered over
         },
         style: {
            padding: '5px 15px', // Give it some extra padding
            name: 'dark' // And style it with the preset dark theme
         },
         show: {
         	when: 'click', // Show it on click
         	solo: true // And hide all other tooltips
      	}
      });
   });
});
